#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <cstdlib>i
#include <cstdio>
using namespace std;

void LifeWithoutZeros(int a, int b)
{
	char str1[20],str2[20],str3[20];
	memset(str1,0,20);
	memset(str2,0,20);
	memset(str3,0,20);
	sprintf(str1,"%d",a);
	sprintf(str2,"%d",b);
	sprintf(str3,"%d",a+b);
	
	//cout << "str1 = " << str1 << "	str2 = " << str2 << "	str3 = " << str3 << endl;

	string v1,v2,v3;
	for(unsigned i = 0; i < 20; i++)
	{
		//cout << str1[i] << "	" << str2[i] << str3[i] << endl;
		if(str1[i] != '0')
			v1.push_back(str1[i]);
		if(str2[i] != '0')
			v2.push_back(str2[i]);
		if(str3[i] != '0')
			v3.push_back(str3[i]);
	}
	
	//cout << v1 << "	" << v2 << "	" << v3 << endl;

	int a_,b_,c_;
	a_ = atoi(v1.c_str());
	b_ = atoi(v2.c_str());
	c_ = atoi(v3.c_str());

	if(a_ + b_ == c_)
		cout << "YES" << endl;
	else
		cout << "NO" << endl;
}

int main(int argc, char* argv[])
{
	int a,b;
	cin >> a >> b;
	LifeWithoutZeros(a,b);
	return 0;
}
